package com.project.bean;

/**
 * 学生实体类
 */
public class StudentBean {
    /**学号*/
    private int stuID;
    /**姓名*/
    private String stuName;
    /**班级编号*/
    private ClassBean classBean;

    public StudentBean() {
    }

    public StudentBean(String stuName) {
        this.stuName = stuName;
        classBean=new ClassBean();
        classBean.setClassName(stuName);
    }

    public int getStuID() {
        return stuID;
    }

    public void setStuID(int stuID) {
        this.stuID = stuID;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public ClassBean getClassBean() {
        return classBean;
    }

    public void setClassBean(ClassBean classBean) {
        this.classBean = classBean;
    }

    @Override
    public String toString() {
        return "StudentBean{" +
                "stuID=" + stuID +
                ", stuName='" + stuName + '\'' +
                ", classBean=" + classBean +
                '}';
    }
}
